package cn.tuling.bean;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Email;

@Component
@Data
@Validated
public class Qqq {
    private Integer age;
    @Value("${student.name}")
    @Email
    private String name;
}
